package com.mercury.coffee.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author 童
 * @createTime 2021/11/21 9:15
 * @projectName coffee-parent
 * @className CoffeeCommentInfo.java
 * @description 用于返回咖啡的评论信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="comment返回的具体信息", description="")
public class CoffeeCommentInfo {

    @ApiModelProperty(value = "评论的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "咖啡id")
    private Integer coffeeId;

    @ApiModelProperty(value = "咖啡名称")
    private String coffeeName;

    @ApiModelProperty(value = "咖啡图片")
    private String coffeeImg;

    @ApiModelProperty(value = "用户昵称")
    private String userNickname;

    @ApiModelProperty(value = "用户头像")
    private String userImg;

    @ApiModelProperty(value = "用户评论")
    private String coffeeComment;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "0 表示未删除  1表示删除")
    private Boolean deleted;

}
